﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="ajax_view_page.Master" CodeBehind="TypeVw.aspx.vb" Inherits="Web.TypeVw" 
    title="类别维护" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ MasterType VirtualPath="ajax_view_page.Master" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="comCont" runat="server">
<asp:UpdatePanel ID="dgUpPal" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                
                
                <!-- 按钮 -->
                <div class="anniu_x">
                    <asp:Button runat="server" Text="查询"  CssClass="btn"  ID="searchBtn"/>
                    <asp:Button runat="server" ID="addbtn" Text="添加"  CssClass="btn"  ToolTip="添加新的数据" OnClick="addbtn_Click" />
            <asp:Button ID="delBtn" runat="server"  Text="删除" CssClass="btn"  ToolTip="删除本页选择数据" OnClientClick="if(confirm('是否确认删除所选数据?')!=true) return false;" />
                    <asp:Button ID="outbtn" runat="server"  CssClass="btn"  OnClick="outbtn_Click" Text="导出" />
                    </div><!-- 按钮 -->
                    
              <!-- 表单式DgGrid -->
      
            <asp:GridView ID="dgGrid" runat="server" width="100%" PageSize="100" AutoGenerateColumns="False" CellPadding="3" GridLines="Horizontal"  BackColor="White" BorderColor="#EFFAFF"  BorderStyle="None" BorderWidth="1px" DataKeyNames="ax01">
            <FooterStyle  BackColor="#B5C7DE" ForeColor="Black" />
            <RowStyle  BackColor="#EFFAFF" ForeColor="#276C9D" />   
            <SelectedRowStyle  BackColor="#738A9C" Font-Bold="True" ForeColor="#F9F9F9" />
            <PagerStyle  BackColor="#EFFAFF" ForeColor="Black" HorizontalAlign="Right" />
            <AlternatingRowStyle  BackColor="#F9F9F9" />
            <HeaderStyle  BackColor="#276C9D" Font-Bold="True" ForeColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="操作">
                    <HeaderTemplate>
                        <asp:CheckBox ID="opChk" runat="server" AutoPostBack="True" OnCheckedChanged="opChk_CheckedChanged"
                            ToolTip="全选/反选 本页所有数据" />
                    		</HeaderTemplate>
                    		 <HeaderStyle Width="10px" />
                    <ItemTemplate>
                        <asp:CheckBox ID="DelChk" runat="server" />
                    		</ItemTemplate>
                </asp:TemplateField>
                <asp:HyperLinkField DataNavigateUrlFields="ax01" DataNavigateUrlFormatString="TypeIn.aspx?ax01={0}"
                    DataTextField="ax02" DataTextFormatString="{0}" HeaderText="名称" />
                <asp:BoundField DataField="ax03" HeaderText="编码" >
                    <ItemStyle HorizontalAlign="Left" Width="80px" />
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="ax04" HeaderText="所属类型" NullDisplayText="正常" >
                    <ItemStyle HorizontalAlign="Left" Width="90px" />
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="ax05" HeaderText="顺序" >
                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                </asp:BoundField>
            				</Columns>
        						</asp:GridView>
        						<div class="neirong1"><webdiyer:aspnetpager id="artPage" runat="server" AlwaysShow="True" ShowCustomInfoSection="Left" UrlPaging="True" PagingButtonLayoutType="Span" PrevPageText="上一页" CssClass="paginator" CurrentPageButtonClass="cpb" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" CustomInfoTextAlign="Left" LayoutType="Table" AlwaysShowFirstLastPageNumber="True" CustomInfoHTML="" NumericButtonCount="5" PageIndexBoxType="DropDownList" PageSize="30" ShowPageIndexBox="Auto" SubmitButtonText="转到"></webdiyer:aspnetpager></div>
        <!-- 表单式DgGrid -->

<!-- 查询隐藏层 -->

<cc1:ModalPopupExtender ID="modelPop" runat="server" X="100" Y="50" DropShadow="true" Drag="false" TargetControlID="searchBtn" OkControlID="HiddenField1" 
                            CancelControlID="cancelbtn" PopupControlID="txtPal" BackgroundCssClass="bg_x" > 
                    </cc1:ModalPopupExtender>
                    
                     <asp:HiddenField id="HiddenField1" runat="server" value="1"/>
                     
                    <asp:Panel ID="txtPal" runat="server">
                       <div class="search_x">选择查询条件</div>
<div class="search_y"><table border="1" style="border-collapse:collapse;background-color:#F2F2F2;" cellpadding="2" cellspacing="2" >
            
            <tr>
                <td class="tab_l">
                    标题:
                </td>
                <td class="tab_l3"><asp:TextBox runat="server" ID="ax02" Columns="10" /></td>
            </tr>
            
            <tr>
                <td class="tab_l">
                    类别:
                </td>
                <td class="tab_l3">
                    <asp:DropDownList ID="ax04" runat="server">
                    </asp:DropDownList></td>
            </tr>
        </table>
        <div class="center"><asp:Button ID="okbtn" runat="server" Text="确定" CssClass="btn"  OnClick="okbtn_Click" />&nbsp;
                    <asp:Button ID="cancelbtn" runat="server" Text="取消" CssClass="btn"  /></div></div> 
                     </asp:Panel>
                     
<!-- 查询隐藏层 -->

<!-- 数据导出隐藏层 -->            
                     
                     <cc1:ModalPopupExtender ID="outPop" runat="server" X="150" Y="100"
                        DropShadow="true" Drag="false" TargetControlID="HiddenField1" OkControlID="HiddenField1" CancelControlID="HiddenField1" PopupControlID="Panel1" PopupDragHandleControlID="Panel2"  BackgroundCssClass="bg_x"> 
                    </cc1:ModalPopupExtender>
                    
                    <asp:Panel ID="Panel1" runat="server">
<div class="search_x">数据导出</div>
                        
                        <div class="search_y">
<table border="1" style="border-collapse:collapse;background-color:#F2F2F2;" cellpadding="2" cellspacing="2" >
            
            <tr>
                <td class="tab_l4"><asp:HyperLink ID="downlnk" runat="server">正在导出,请稍候...</asp:HyperLink></td>
            </tr>

            <tr>
                <td class="tab_l4">
                    <asp:Button ID="outcancelbtn" runat="server" Text="关闭" CssClass="btn" OnClick="outcancelbtn_Click1" /></td>
            </tr>
        </table>
                        </div> 
                     </asp:Panel>
                </ContentTemplate>
            </asp:UpdatePanel>

<!-- 数据导出隐藏层 --> 
</asp:Content>

